package cn.edu.zut.model;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Scope("prototype")
public class Grade {
    private float Chinese;
    private float Math;
    private float English;

    public float getChinese() {
        return Chinese;
    }

    public void setChinese(float chinese) {
        Chinese = chinese;
    }

    public float getMath() {
        return Math;
    }

    public void setMath(float math) {
        Math = math;
    }

    public float getEnglish() {
        return English;
    }

    @Resource(name = "list")
    public void setEnglish(float english) {
        English = english;
    }

    @Override
    public String toString() {
        return "Grade{" +
                "Chinese=" + Chinese +
                ", Math=" + Math +
                ", English=" + English +
                '}';
    }
}
